package com.yt.app.provider.dao.impl;

import com.yt.app.core.model.AppTopic;
import com.yt.app.provider.dao.AppTopicDao;
import com.yt.core.dao.GenericDaoImpl;

/**
 * Created by liujunshi on 16-1-22.
 */
public class AppTopicDaoImpl extends GenericDaoImpl<AppTopic, Long> implements AppTopicDao {
	public AppTopicDaoImpl() {
		setNameSpace("com.yt.app.apptopic");
	}

	@Override
	public void increateFavNum(Long topicId) {
		this.getSqlSession().update(this.getNameSpace() + ".increaseFavNum", topicId);
	}
	@Override
	public void increateViewNum(Long topicId) {
		this.getSqlSession().update(this.getNameSpace() + ".increaseViewNum", topicId);
	}
}
